Nuxt.js command
% npx create-nuxt-app <project-name>
以下のような表示がでて、codingできる形になる。
To get started:
cd hello3
npm run dev
To build & start for production:
cd hello3
npm run build
npm run start
To test:
cd hello3
npm run test
npx nuxt 自体は、devのsub commandのみで、npmにコマンドは任せるということかな(nodejsの作法?がわかってない)
ここにあった。見てなかった。dev, build, generate(SSR).
% npx nuxt --help
Start the application in development mode (e.g. hot-code reloading, error reporting)
Options:
--spa, -s Launch in SPA mode
--universal, -u Launch in Universal mode (default)
--config-file, -c Path to Nuxt.js config file (default: nuxt.config)
--modern, -m Build/Start app for modern browsers, e.g. server, client and false
--force-exit Whether Nuxt.js should force exit after the command has finished
--version, -v Display the Nuxt version
--help, -h Display this message
--port, -p Port number on which to start the application
--hostname, -H Hostname on which to start the application
--unix-socket, -n Path to a UNIX socket
--open, -o Opens the server listeners url in the default browser
$ mkdir hello
$ npx nuxt dev hello
pages directoryがないので、default built-in pageを作ったと出る。